﻿﻿<div id="engine-content">
    <div class="sidebar-left">
        <div class="project-browse">
            <div class="project-browse-l">项目浏览</div>
            <div class="project-browse-r"><a href="/html2/system#/project-manager"><i class="icon-engine-set"></i></a></div>
            <div class="clear"></div>
        </div>
        <div class="select-project">
            <div class="select-project-l select-project-l-w"><i class="icon-engine-project"></i>{{currProjcet.projectName | maxLength:20}}</div>
            <div class="select-project-r">
                <a href="#/welcome"><i class="icon-engine-down-b"></i></a>
            </div>
            <div class="clear"></div>
        </div>
        <div class="select-project" style="height:65px;">
            <div class="select-project-top">
                <div class="select-project-l select-project-l-w"><i class="icon-engine-package"></i>{{currPackage.name | maxLength:20}}</div>
                <div class="select-project-r"><a href="#/rule/{{currProjcet.id}}"><i class="icon-engine-down-b"></i></a></div>
                <div class="clear"></div>
            </div>
            <div class="select-project-bottom">
                <img src="/static/images/intersection-no.png" >
                <img src="/static/images/surface-no.png">
                <img src="/static/images/tree-no.png">
                <img src="/static/images/rule-no.png">
            </div>
        </div>
        <div class="project-title"><a href="#/projects/{{currProjcet.id}}/packages/{{currPackage.id}}">规则包配置</a></div>
        <ul class="engine-menu">
            <li class="menu-one" ng-repeat="menu in menus">
                <div ng-mouseover="menuBtns=true" ng-mouseout="menuBtns=false">
                    <a ng-class="{'menu-on':menu.id==currDecisionTable.id}" href="#/projects/{{currProjcet.id}}/packages/{{packageId}}/{{menu.type==0?'assemblys':(menu.type==1?'decisionTables':'decisionTrees')}}/{{menu.id}}" ng-click="select(menu)" >
                        <img ng-if="menu.type==0" src="/static/images/intersection-gray.png" style="padding-right:2px;vertical-align:middle;">
                        <img ng-if="menu.type==1" src="/static/images/surface-gray.png" style="padding-right:6px;vertical-align:middle;">
                        <img ng-if="menu.type==2" src="/static/images/tree-gray.png" style="padding-right:6px;vertical-align:middle;">{{menu.name | maxLength:12}}
                    </a>
                    <div class="move-menu">
                        <span class="remove" ng-show="menuBtns"><a href="javascript:void(0)" ng-click="deleteMenu(menu)" pg-per="{{packageId}}|1" pg-sta="{{status}}|0"><i class="icon-engine-removeove"></i></a></span>
                    </div>
                </div>
                <ul class="engine-menu-rule" ng-if="menu.rules && menu.rules.length>0">
                    <li class="menu-two-open" ng-repeat="rule in menu.rules">
                        <div ng-mouseover="ruleBtns=true" ng-mouseout="ruleBtns=false">
                            <a href="#/projects/{{currProjcet.id}}/packages/{{packageId}}/{{menu.type==0?'assemblys':(menu.type==1?'decisionTables':'decisionTrees')}}/{{menu.id}}/rules/{{rule.id}}" ng-click="selectRule(rule)">{{rule.name|maxLength:12}}</a>
                            <div class="move-menu-a">
                                <span class="remove" ng-show="ruleBtns"><a href="javascript:void(0)" ng-click="deleteRule(rule.id)" pg-per="{{packageId}}|1" pg-sta="{{status}}|0"><i class="icon-engine-removeove"></i></a></span>
                            </div>
                        </div>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
    <div class="sidebar-right">
        <div class="sidebar-right-title">
            <div class="sidebar-right-title-l">
                <ol class="breadcrumb" style="padding:0px 15px;margin-bottom:0px;">
                    <li><a href="#/projects/{{currProjcet.id}}">{{currProjcet.projectName}}</a></li>
                    <li><a href="#/projects/{{currProjcet.id}}/packages/{{currPackage.id}}">{{currPackage.name}}</a>
                    </li>
                    <li class="active"><a href="#/projects/{{currProjcet.id}}/packages/{{currPackage.id}}/decisionTrees/{{currDecisionTree.id}}">{{currDecisionTree.name}}</a>
                    </li>
                </ol>
            </div>

            <div class="clear"></div>
        </div>
        <div class="engine-tab">
            <ul>
                <li class="on" data-key="conditions"><a href="javascript:void(0)">进入条件</a></li>
                <li name="decisionTreeEdit" data-key="edit"><a href="javascript:void(0)">决策树编辑</a></li>
                <li data-key="variable"><a href="javascript:void(0)">决策树变量</a></li>
                <li data-key="setting"><a href="javascript:void(0)">决策树设置</a></li>
            </ul>
        </div>
        <div class="engine-tab-content" data-key="conditions">
            <div id="shadeCondition"></div>
            <!--详细内容左列-->
            <div class="engine-tab-content-l">
                <!--添加-->
                <!--<div class="add"><a href="javascript:void(0)" ng-click="addRow()"><i class="icon-engine-plus"></i></a>
                </div>-->
                <div class="bc" pg-per="{{packageId}}|1">
                    <button type="button" class="engine-btn-success" ng-click="save()" pg-sta="{{status}}|0"><i class="icon-engine-preservation"></i>保存</button>
                </div>
                <div class="clear"></div>
                <!--添加结束-->
                <!--进入条件-->
                <div class="entry" id="condition" >
                    <div class="entry-title-l">进入条件</div>
                    <div class="add"><a href="javascript:void(0)" ng-click="addConditionRow('&&','',true)" pg-sta="{{status}}|1"><i class="icon-engine-plus"></i></a></div>
                    <div class="clear"></div>
                    <div ng-repeat="conditionRow in conditionRows">
                        <div class="entry-set"  name="rowC" id="remove{{conditionRow._id}}"    ng-if="$index==0">
                            <div class="nub">{{$index+1}}</div>
                            <div class='entry-set-l' name='rowVariable'   id="addRow{{condition._id}}">
                                <span class='attribute' ng-repeat="condition in conditionRow.conditions"  id='click{{condition.countCondition}}'  onmouseleave="closeEdit('node')"  onmouseenter="showEdit('node')"><a href='javascript:void(0)' name='node'  id='node{{condition.countCondition}}'  ng-click="show(condition.countCondition,'node',condition.type)" type={{condition.type}} value={{condition.value}} pg-sta="{{status}}|2">{{condition.mes}}</a></span>
                                <span ng-if="conditionRow.isButton" id='click{{conditionRow.countCondition}}' ><button type='button' name ='addButton' id='showCondition{{conditionRow.countCondition}}' ng-click='show(conditionRow.countCondition,&apos;button&apos;)' class='engine-btn-default' pg-sta="{{status}}|0">点击选择</button></span>
                            </div>
                            <div class='entry-set-r'>
                                <!--<span><a href="javascript:void(0)" ng-click="addBracket()" value={{conditionRow._id}} pg-sta="{{status}}|1">()</a></span>-->
                                <span><a href="javascript:void(0)" ng-click="copyCRow($index)" value={{conditionRow._id}} pg-sta="{{status}}|1">\</a></span>

                                <span><a href="javascript:void(0)"  ng-click="removeRowCondition($index)" pg-sta="{{status}}|1">&nbsp;-</a></span>
                                <span><a href="javascript:void(0)"  ng-click="addRowCondition($index)" pg-sta="{{status}}|1">&nbsp;+</a></span>
                            </div>
                            <div class='clear'></div>
                        </div>
                        <div class='entry-set' name='rowC' id='remove{{conditionRow._id}}' ng-if="$index!=0">
                            <div class="nub">{{$index+1}}</div>
                            <div class='entry-set-l' name='rowVariable' id='addRow{{conditionRow._id}}'>
                                <span  class='also'>
                                    <a ng-if="conditionRow.sign=='&&'" href='javascript:void(0)' ng-click="change(conditionRow.countCondition)" name='node'  id='symbol{{conditionRow.countCondition}}' value='{&apos;oper&apos;:&apos;&&&apos;}' pg-sta="{{status}}|0">并且<i class='icon-engine-down-a'></i></a>
                                    <a ng-if="conditionRow.sign=='||'" href='javascript:void(0)' ng-click="change(conditionRow.countCondition)" name='node'  id='symbol{{conditionRow.countCondition}}' value='{&apos;oper&apos;:&apos;||&apos;}' pg-sta="{{status}}|0">或者<i class='icon-engine-down-a'></i></a>
                                </span>
                                <span class='attribute' ng-repeat="condition in conditionRow.conditions"  id='click{{condition.countCondition}}'  onmouseleave="closeEdit('node')"  onmouseenter="showEdit('node')" pg-sta="{{status}}|0"><a href='javascript:void(0)' name='node'  id='node{{condition.countCondition}}'  ng-click="show(condition.countCondition,'node',condition.type)" type={{condition.type}} value={{condition.value}} pg-sta="{{status}}|2">{{condition.mes}}</a></span>
                                <span ng-if="conditionRow.isButton" id='click{{conditionRow.countCondition}}' ><button type='button' name ='addButton' id='showCondition{{conditionRow.countCondition}}' ng-click='show(conditionRow.countCondition,&apos;button&apos;)' class='engine-btn-default'pg-sta="{{status}}|0">点击选择</button></span>
                            </div>
                            <div class='entry-set-r'>
                                <!--<span><a href="javascript:void(0)" ng-click="addBracket()" value={{conditionRow._id}} pg-sta="{{status}}|1">()</a></span>
                                -->
                                <span><a href="javascript:void(0)" ng-click="copyCRow($index)" value={{conditionRow._id}} pg-sta="{{status}}|1">\</a></span>

                                <span><a href="javascript:void(0)"  ng-click="removeRowCondition($index)" pg-sta="{{status}}|1">&nbsp;-</a></span>
                                <span><a href="javascript:void(0)"  ng-click="addRowCondition($index)" pg-sta="{{status}}|1">&nbsp;+</a></span>
                            </div>
                            <div class='clear'></div>
                        </div>
                    </div>
                </div>
            </div>
            <!--进入条件-->

            <!--详细内容左列结束-->
            <!--详细内容右列-->
            <div class="engine-tab-content-r" id="shadeModel">
                <div ng-show="showNone">
                    <div class="remind-r">
                        <div class="tu"><i class="icon-engine-remind"></i></div>
                        <div class="text">请单击条件选择框进行编辑。</div>
                        <div class="clear"></div>
                    </div>
                </div>
                <div ng-show="showAllCondition">
                    <div class="engine-condition">
                        <ul>
                            <li class="on" name="column" id="property"><a href='javascript:void(0)'
                                                                          ng-click="show('property')">模型</a></li>
                            <li name="column" id="entry"><a href='javascript:void(0)' ng-click="show('entry')">输入值</a>
                            </li>
                            <li name="column" id="sign"><a href='javascript:void(0)' ng-click="show('sign')">符号</a></li>
                            <li name="column" id="variable"><a href='javascript:void(0)'
                                                               ng-click="show('variable')">变量</a></li>
                            <li name="column" id="method"><a href='javascript:void(0)' ng-click="show('method')">方法</a>
                            </li>
                            <li name="column" id="component"><a href='javascript:void(0)' ng-click="show('component')">组件</a>
                            </li>
                            <!--<li name="column" id="special"><a href='javascript:void(0)' ng-click="show('special')">特殊操作</a>
                            </li>-->
                            <li name="column" id="dict"><a href='javascript:void(0)' ng-click="show('dict')">字典</a>
                            </li>

                        </ul>
                    </div>
                    <!--条件结束-->
                    <!--属性值-->
                    <div class="engine-attribute" ng-show="showProperty">
                        <!--业务模型-->
                        <div class="model">
                            <div class="model-l">业务模型</div>
                            <div class="model-r"><a href="#"><i class="icon-engine-search"></i></a></div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <table width="100%">
                                <tr ng-class="{'model-value':!$first}" ng-repeat="modelAttribute in modelAttributes">
                                    <td ng-if="modelAttribute.dataType!='Object'">
                                        <div class="model-value-l">
                                            <button type="button" class="engine-btn-model"
                                                    ng-click="addModel(modelAttribute.name)">{{modelAttribute.dataType}}
                                            </button>
                                        </div>
                                        <div class="model-value-r">{{modelAttribute.name}}</div>
                                        <div class="clear"></div>
                                    </td>
                                    <td ng-if="modelAttribute.dataType=='Object'">
                                        <div class="model-value-l">
                                            <button type="button" class="engine-btn-model" id="{{modelAttribute.id}}"
                                                    ng-click="viewObject(modelAttribute.id,1)">对象[+]
                                            </button>
                                        </div>
                                        <div class="model-value-r" ng-click="addModel(modelAttribute.name)">{{modelAttribute.name}}</div>
                                        <div class="clear"></div>
                                        <div id="son{{modelAttribute.id}}"></div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>

                    <div class="engine-attribute" ng-show="showEntry">
                        <!--输入值-->
                        <div class="value">
                            <div class="engine-form-group">
                                <label>输入值</label>
                                <textarea cols="47" rows="10" ng-model="textEntry"></textarea>
                            </div>
                            <button type="button" class="engine-btn-default" ng-click="addEntry()">确定</button>
                        </div>
                        <!--输入值结束-->
                    </div>

                    <div class="engine-attribute" ng-show="showMethod">
                        <!--输入值-->
                        <div class="model-value">
                            <div class="model-value-m">
                                <button type="button" class="engine-btn-model" ng-click="dateMethod=!dateMethod">时间操作方法
                                </button>
                            </div>
                        </div>
                        <div ng-show="dateMethod">

                            <!--<div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('addHours')">确定
                                    </button>
                                </div>
                                <div class="model-value-r">加 &nbsp;<input type="text" id="addHours" style="width: 40px" ng-click="showHours()"  />&nbsp;
                                    小时(操作时间格式)
                                    <div class="model-value-r-open"  ng-show="addHourTime" ng-mouseleave="closeHours()" >
                                        <div class="model-value-r-open-a" ng-repeat="modelAttribute in allModelAttributes"   ng-click="selectAttr(modelAttribute)"><a href="javascript:void(0)">{{modelAttribute.name}}</a></div>
                                    </div>
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('countHours')">确定
                                    </button>
                                </div>
                                <div class="model-value-r">加 &nbsp;<input type="text" id="countHours" style="width: 40px" />&nbsp;
                                    小时(格式09:01)
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model"
                                            ng-click="addMethod('lastDateTime','当天最后时间')">确定
                                    </button>
                                </div>
                                <div class="model-value-r">当天最后时间</div>
                                <div class="clear"></div>
                            </div>-->
                            <div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('nowDate','当前时间')">
                                        确定
                                    </button>
                                </div>
                                <div class="model-value-r">当前时间</div>
                                <div class="clear"></div>
                            </div>

                            <!--<div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('compareHour','小时比较')">
                                        确定
                                    </button>
                                </div>
                                <div class="model-value-r">小时比较</div>
                                <div class="clear"></div>
                            </div>

                            <div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('replaceDate','替换时分秒')">
                                        确定
                                    </button>
                                </div>
                                <div class="model-value-r">替换时分秒</div>
                                <div class="clear"></div>
                            </div>-->
                            <div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('middleDate','中间时间')">
                                        确定
                                    </button>
                                </div>
                                <div class="model-value-r">中间时间</div>
                                <div class="clear"></div>
                            </div>
                            <div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('monthDays','自然月天数')">
                                        确定
                                    </button>
                                </div>
                                <div class="model-value-r">自然月天数</div>
                                <div class="clear"></div>
                            </div>
                            <div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('lastDayOfMonth','当月最后时间')">
                                        确定
                                    </button>
                                </div>
                                <div class="model-value-r">当月最后时间</div>
                                <div class="clear"></div>
                            </div>
                        </div>


                        <div class="model-value">
                            <div class="model-value-m">
                                <button type="button" class="engine-btn-model" ng-click="stringMethod=!stringMethod">字符串操作方法
                                </button>
                            </div>
                        </div>
                        <div ng-show="stringMethod">
                            <div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('endsWith')">确定
                                    </button>
                                </div>
                                <div class="model-value-r">以 &nbsp;<input type="text" id="endsWith" style="width: 40px" />&nbsp;
                                    结尾
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('matchWith')">确定
                                    </button>
                                </div>
                                <div class="model-value-r">包含 &nbsp;<input type="text" id="matchWith" style="width: 40px" />&nbsp;
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('startWith')">确定
                                    </button>
                                </div>
                                <div class="model-value-r">以 &nbsp;<input type="text" id="startWith" style="width: 40px" />&nbsp;开头
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="model-value">
                                <div class="model-value-l">
                                    <button type="button" class="engine-btn-model" ng-click="addMethod('matcher')">确定
                                    </button>
                                </div>
                                <div class="model-value-r">匹配正则<input type="text" id="matcher" style="width: 40px" />&nbsp;
                                </div>
                                <div class="clear"></div>
                            </div>
                        </div>
                        <!--输入值结束-->
                    </div>


                    <div class="engine-attribute" ng-show="showVariable">
                        <div class="model-value">
                            <table width="100%">
                                <tr ng-repeat="variable in variables">
                                    <td>
                                        <div class="model-value-l">
                                            <button type="button" class="engine-btn-model"
                                                    ng-click="addVariable(variable.varName)">变量
                                            </button>
                                        </div>
                                        <div class="model-value-r">{{variable.varName}}</div>
                                        <div class="clear"></div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>

                    <div class="engine-attribute" ng-show="showSign">
                        <!--符号-->
                        <div class="symbol">
                            <div class="symbol-tit">逻辑运算符</div>
                            <div class="symbol-but">
                                <button type="button" ng-click="addMethod('&&')"  class="engine-btn-symbol">并且</button>
                                <button type="button" ng-click="addMethod('||')" class="engine-btn-symbol">或者</button>
                            </div>
                            <div class="symbol-tit">比较符</div>
                            <div class="symbol-but">
                                <button type="button" ng-click="addSign('<')"  class="engine-btn-symbol">小于</button>
                                <button type="button" ng-click="addSign('==')" class="engine-btn-symbol">等于</button>
                                <button type="button" ng-click="addSign('>')" class="engine-btn-symbol">大于</button>
                                <button type="button" ng-click="addSign('<=')" class="engine-btn-symbol">小于等于</button>
                                <button type="button" ng-click="addSign('!=')" class="engine-btn-symbol">不等于</button>
                                <button type="button" ng-click="addSign('>=')" class="engine-btn-symbol">大于等于</button>
                            </div>
                            <div class="symbol-tit">数值运算符</div>
                            <div class="symbol-but">
                                <button type="button" ng-click="addSign('+')" class="engine-btn-symbol">+</button>
                                <button type="button" ng-click="addSign('-')" class="engine-btn-symbol">-</button>
                                <button type="button" ng-click="addSign('*')" class="engine-btn-symbol">*</button>
                                <button type="button" ng-click="addSign('/')" class="engine-btn-symbol">/</button>
                            </div>
                            <div class="symbol-tit">括号</div>
                            <div class="symbol-but">
                                <button type="button" ng-click="addSign('(')" class="engine-btn-symbol">(</button>
                                <button type="button" ng-click="addSign(')')" class="engine-btn-symbol">)</button>

                            </div>
                        </div>
                        <!--符号结束-->
                    </div>
                    <!--属性值结束-->
                    <!--<div class="engine-attribute" ng-show="showSpecial">
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('list')">确定
                                </button>
                            </div>
                            <div class="model-value-r">循环&nbsp;&nbsp;<input type="text" id="loopList" style="width: 50px" />&nbsp;
                            </div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('listEnd')">确定
                                </button>
                            </div>
                            <div class="model-value-r">循环结束&nbsp;&nbsp;
                            </div>
                            <div class="clear"></div>
                        </div>

                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('judge')">确定
                                </button>
                            </div>
                            <div class="model-value-r">判断&nbsp;&nbsp;
                            </div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('judgeEnd')">确定
                                </button>
                            </div>
                            <div class="model-value-r">判断结束&nbsp;&nbsp;
                            </div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('listValue')">确定
                                </button>
                            </div>
                            <div class="model-value-r">获取&nbsp;&nbsp;<input type="text" id="listValue" style="width: 50px" />&nbsp;
                            </div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('listObj')">确定
                                </button>
                            </div>
                            <div class="model-value-r">获取循环中对象
                            </div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('MapGet','Map获取')">确定
                                </button>
                            </div>
                            <div class="model-value-r">Map获取
                            </div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('MapPut','Map设置')">确定
                                </button>
                            </div>
                            <div class="model-value-r">Map设置
                            </div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('ListAdd','List添加')">确定
                                </button>
                            </div>
                            <div class="model-value-r">List添加
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>-->
                    <div class="engine-attribute" ng-show="showComponent">
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('remoteService','远程服务')">
                                    确定
                                </button>
                            </div>
                            <div class="model-value-r">远程服务</div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('JDBCService','数据库组件')">
                                    确定
                                </button>
                            </div>
                            <div class="model-value-r">数据库组件</div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('Dubbo','Dubbo组件')">
                                    确定
                                </button>
                            </div>
                            <div class="model-value-r">Dubbo组件</div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('springCloudService','SpringCloud组件')">
                                    确定
                                </button>
                            </div>
                            <div class="model-value-r">SpringCloud组件</div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('groovyShellService','GroovyShell组件')">
                                    确定
                                </button>
                            </div>
                            <div class="model-value-r">GroovyShell组件</div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('Rule','规则组件')">
                                    确定
                                </button>
                            </div>
                            <div class="model-value-r">规则组件</div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('MAX','最大值')">
                                    确定
                                </button>
                            </div>
                            <div class="model-value-r">最大值</div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('MIN','最小值')">
                                    确定
                                </button>
                            </div>
                            <div class="model-value-r">最小值</div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('AVG','平均值')">
                                    确定
                                </button>
                            </div>
                            <div class="model-value-r">平均值</div>
                            <div class="clear"></div>
                        </div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('SUM','求和')">
                                    确定
                                </button>
                            </div>
                            <div class="model-value-r">求和</div>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                        <div class="model-value">
                            <div class="model-value-l">
                                <button type="button" class="engine-btn-model" ng-click="addMethod('Rate','规则组件')">
                                    确定
                                </button>
                            </div>
                            <div class="model-value-r">费率组件</div>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>


                    </div>
                    <div class="engine-attribute" ng-show="showDict">
                        <div class="model-value">
                            <table width="100%">
                                <tbody ng-repeat="dict in dicts" >
                                <tr >
                                    <td >
                                        <!--<button type="button" ng-click="dict.show=!dict.show">{{dict.name}}
                                        </button>-->
                                        <div class="model-value-m">
                                            <button type="button" class="engine-btn-model" ng-click="dict.show=!dict.show">{{dict.name}}
                                            </button>
                                        </div>
                                    </td>
                                </tr>
                                <tr ng-repeat=" item in dict.records" ng-show="dict.show">
                                    <td >
                                        <div class="model-value-l" style="margin-left: 20px">
                                            <button type="button" class="engine-btn-model" ng-click="addDict(item)">确定
                                            </button>
                                        </div>
                                        <div class="model-value-r">{{item.name}}</div>
                                        <div class="clear"></div>
                                    </td>

                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <div class="clear"></div>
                    <div class="engine-attribute" ng-show="showDict">
                        <div class="model-value">
                            <table width="100%">
                                <tbody ng-repeat="dict in dicts" >
                                <tr >
                                    <td >
                                        <!--<button type="button" ng-click="dict.show=!dict.show">{{dict.name}}
                                        </button>-->
                                        <div class="model-value-m">
                                            <button type="button" class="engine-btn-model" ng-click="dict.show=!dict.show">{{dict.name}}
                                            </button>
                                        </div>
                                    </td>
                                </tr>
                                <tr ng-repeat=" item in dict.records" ng-show="dict.show">
                                    <td >
                                        <div class="model-value-l" style="margin-left: 20px">
                                            <button type="button" class="engine-btn-model" ng-click="addDict(item)">确定
                                            </button>
                                        </div>
                                        <div class="model-value-r">{{item.name}}</div>
                                        <div class="clear"></div>
                                    </td>

                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>

            </div>

        </div>
        <div class="engine-tab-content" data-key="edit">
            <div ng-include="'../html2/rule/decisionTreeEdit'" ng-controller="DecisionTreeEditController"></div>
        </div>
        <div class="engine-tab-content" data-key="variable">
            <div ng-include="'../html2/rule/variable/variable'" ng-controller="VariableController"></div>
        </div>
        <div class="engine-tab-content" data-key="setting">
            <div ng-include="'../html2/rule/setting/decisionTreeInstall'" ng-controller="DecisionTreeInstallController"></div>
        </div>
    </div>
</div>